package BaseClassPackagePractice;

public class demo07StudentStaticField {
	
	private int id;
	private String name;
	private int age;
	public static String room;
	
	private static int idCounter = 0;
	
	public demo07StudentStaticField() {
		super();
		this.id = ++idCounter;
	}

	public demo07StudentStaticField(String name, int age) {
		super();
		this.name = name;
		this.age = age;
		this.id = ++idCounter;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
}
